<template>
  <div class="dashboard-container">
    <head-tool>
      <!-- <span slot="before">你好,欢迎来到大眼珠子世界</span> -->
      <div slot="after">
        <el-button type="primary">三眼小分队</el-button>
        <el-button type="primary">四眼小分队</el-button>
      </div>
    </head-tool>
    <div class="dashboard-text">name: {{ name }}</div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters(['name'])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
